package org.kanglg.demo.service;

import org.kanglg.demo.dao.DeptDao;
import org.kanglg.demo.entity.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by kanglg on 2015/7/31.
 */
@Service
@Transactional(readOnly = true)
public class DeptBS extends MpttBS<Dept> {
    @Autowired
    private DeptDao deptDao;
    public Dept getEntity(String id) {
        return deptDao.findOne(id);
    }
}
